// pages/longPicture/longPicture.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imageUrl: ''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let schoolCode = wx.getStorageSync('schoolConfig').schoolCode
    let imageUrl = `https://xwx.gzzmedu.com:6899/schoolHistory/${schoolCode}.png`;
    this.setData({
      imageUrl
    })
  },
  preview () {
    wx.previewImage({
      current: this.data.imageUrl,
      urls: [this.data.imageUrl],
    })
  }
})